import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url: '/crm/salesCount/getSalesCount',
    method: 'get',
    params: params
  })
}
export function getSalesArea(params) {
  return request({
    url: '/crm/salesCount/getSalesArealDistribution',
    method: 'get',
    params: params
  })
}
// /crm/salesCount/getDetail
export function getDetail(params) {
  return request({
    url: '/crm/salesCount/getDetail',
    method: 'get',
    params: params
  })
}
export function getSaleroom(merchantId) {
  return request({
    url: '/crm/salesCount/getThisYearSaleroom?merchantId='+merchantId,
    method: 'get',
    merchantId: merchantId
  })
}

export function getAllsaleroom(merchantId) {
  return request({
    url: '/crm/salesCount/getAllYearSalesCount?merchantId='+merchantId,
    method: 'get',
    merchantId: merchantId
  })
}
